ASCII Flat File Format Requirements

The following example is provided to give a general idea of what is meant by the term “flat file” (columns contain data elements and rows contain complete records of individual observations).  But it is important to understand that there is a lot of flexibility in the details, for example the columns present and their order, the presence of a header row, etc.

Well ID

Date

Flag

Result

MDL

Units

CAS#

Parameter

MW-11

9/28/1990

 

7.6

n/a

SIU

010-29-7

pH

MW-11

9/28/1990

 

1700

n/a

mg/1

16887-00-6

Chloride

MW-11

9/28/1990

ND

0.1

0.1

mg/1

14797-55-8

Nitrate

MW-11

9/28/1990

 

210

n/a

mg/1

14808-79-8

Sulfate

MW-11

9/28/1990

 

3900

n/a

mg/1

10-33-3

TDS

MW-11

12/19/1990

 

1300

n/a

mg/1

16887-00-6

Chloride

MW-11

12/19/1990

 

6.7

n/a

mg/1

14797-55-8

Nitrate

MW-11

12/19/1990

 

6.4

n/a

SIU

010-29-7

pH

MW-11

12/19/1990

 

270

n/a

mg/1

14808-79-8

Sulfate

MW-11

12/19/1990

 

3360

n/a

mg/1

10-33-3

TDS

MW-17

10/24/1990

H

1600

n/a

mg/1

16887-00-6

Chloride

MW-17

10/24/1990

H

0.6

n/a

mg/1

14797-55-8

Nitrate

MW-17

10/24/1990

H

7.15

n/a

SIU

010-29-7

pH

MW-17

10/24/1990

H

360

n/a

mg/1

14808-79-8

Sulfate

MW-17

10/24/1990

H

3800

n/a

mg/1

10-33-3

TDS

MW-17

12/19/1990

H

1800

n/a

mg/1

16887-00-6

Chloride

MW-17

12/19/1990

H

6.7

n/a

mg/1

14797-55-8

Nitrate

Figure 2.1: Example of Flat File Translatable Format

Delimiters

The flat file should be an ASCII text file (i.e. NOT in .xls format or other binary formats) and should be tab- or comma-delimited.  If the flat file is in binary format, is space delimited or contains fixed-length fields, it should be reformatted to a tab- or comma-delimited text format before running the Sanitas importer (most spreadsheets can reformat various data files to tab- or comma-delimited files).

Fields

The flat file should contain at least the following fields, in any order:

The flat file may contain the following optional fields:

Any additional fields will be ignored by the translator.

Field Formats

The Sanitas Data Translator is flexible, and will alert you to any improprieties in your data.  We suggest you try translating your data before you worry about the details below.

Well or Monitoring Point name:
Sample Date:
  1. mm/dd/yy
  1. mm/dd/yyyy
  1. mmddyy
  1. mmddyyyy
  1. yymmdd
  1. yyyymmdd
  1. dd/mm/yy
  1. dd/mm/yyyy
  1. ddmmyy
  1. ddmmyyyy
Constituent name:
Units name (i.e.; mg/l, ug/l, etc.):
Sample value must be one of the following three types:
Flags (short, user-defined codes attached to a specific data item for data qualification or other tracking purposes, and/or to define nondetect and/or trace values):

Duplicate Values

The Sanitas Data Translator averages multiple values for the same date/well/constituent.  When Sanitas encounters duplicate (triplicate or quadruplicate) values that are categorically different with regard to quantitation, the component values are averaged in the following manner:

  1. If any of the components are detected and quantified (i.e., a “detect”), Sanitas will interpret the resultant averaged value as a detect;
  2. If all components are censored but at least one is a trace value (i.e., detected but not quantified), the highest trace value will be used;
  3. When there are differing detection limits (MDLs and/or PQLs) for trace values within the same sampling event, the highest trace value is used in lieu of averaging.

The following examples illustrate how Sanitas interprets these sets of sampling event values, assuming the <MDL+PQL trace syntax is selected and no non-default Alternate Reporting Limits behavior is in use:

Figure 2.2: Example of How Sanitas Interprets Sets of Sampling Event Values